#include <iostream>
#include "Terrain.h"
#include "Forme.h"
using namespace std;

int main()
{
    Case c;
    bool x;
    bool y;
    Forme f;
    Terrain ter;
    TerInitialise (ter);
    FormeInitialise(&f, ter);
    c = TerGetXY(ter, 5, 5);
    x = TerPositionValide(ter, 5, 5);
    y = TerPositionValide(ter, 30, 10);
    printf("%d*%d positionforme\n", FormeGetPositionX(f), FormeGetPositionY(f));
    FormeAffichagePiece(f);
    FormeDeplacerBas(&f, &ter);
    printf("%d*%d positionforme\n", FormeGetPositionX(f), FormeGetPositionY(f));
    printf("%d c\n",c);
    printf("%d x\n",x);
    printf("%d y\n",y);
    return 0;
}
